package com.me.learnspring.repository;


import com.me.learnspring.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface CategoryRepository extends JpaRepository<Category,Long> {
	Optional<Category> findByName(String name);
}
